package com.sea.base.ext.view

import androidx.fragment.app.FragmentActivity
import com.sea.base.ui.IUIContext

@Suppress("NOTHING_TO_INLINE")
inline fun FragmentActivity.toUIContext() =
    if (this is com.sea.base.ui.IUIContext) this else com.sea.base.ui.IUIContext.createWithActivity(this)